package com.aspose.cells;

class zbwe {
   static int a(byte[] var0, int var1, int var2, byte var3) {
      if ((var3 & 255 & 128) == 0) {
         return com.aspose.cells.b.a.zc.e(var0, var1);
      } else {
         short var4 = com.aspose.cells.b.a.zc.b(var0, var1);
         int var5 = var4 + var2;
         if (var5 > 65535) {
            var5 = var5 - '\uffff' - 1;
         }

         return var5;
      }
   }

   static int b(byte[] var0, int var1, int var2, byte var3) {
      if ((var3 & 255 & 64) == 0) {
         return var0[var1] & 255 & 255;
      } else {
         int var4 = var0[var1] & 255 & 255;
         int var5 = var4 + var2;
         if (var5 > 255) {
            var5 = var5 - 255 - 1;
         }

         return var5;
      }
   }
}
